<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/4/15
 * Time: 18:08
 */

namespace common\sources\write\taskorderlog;

use Yii;

class BuyTaskOrderLogAccess implements IBuyTaskOrderLogAccess
{
    public function addTaskOrderLog($param)
    {
        return Yii::$app->db->createCommand()->insert('buy_task_order_log', [
            'buy_id' =>  $param['buy_id'],
            'task_status' => $param['task_status'],
            'status_remark' => $param['status_remark'],
            'remark' => $param['remark'],
            'task_order_id' => isset($param['task_order_id']) ? $param['task_order_id'] :0,
            'operator' => $param['operator'],
            'create_time' => time()
        ])->execute();
    }
}